package main

/*
* Author: JacksonCoder
* CreateTime: 2024/11/30
 */

func Map() {
	m1 := map[string]int{
		"key1": 123,
	}
	m1["hello"] = 456

	// 容量
	m2 := make(map[string]int, 12)
	m2["key2"] = 12

	val, ok := m1["alen"]
	if ok {
		//
		println(val)
	}
	val = m1["小明"]
	println("小明的回应值：", val)

	delete(m1, "key1")
}
